﻿using System;
using System.ComponentModel;

namespace Davian.BLL
{
    class WpfDrawing
    {
        private BackgroundWorker bw = new BackgroundWorker();

        public WpfDrawing()
        {
        }

        private void InitializeBackgoundWorker()
        {
            bw.DoWork += new DoWorkEventHandler(bw_DoWork);
            bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);
            bw.ProgressChanged += new ProgressChangedEventHandler(bw_ProgressChanged);
            bw.RunWorkerAsync();
        }

        private void bw_DoWork(object sender, DoWorkEventArgs e)
        {
            int iCount = 100000;
            for (int i = 0; i < iCount; i++)
            {
                Console.WriteLine(i);
            }
        }

        private void bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {

        }

        private void bw_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {

        }
        //curve diagram
    }
}
